<?php get_header() ?>
<div class="container conteudo">
    <div class="row">
        <section class="col-sm-8 blog-main">
            <?php if( have_posts() ): ?>
                <?php while ( have_posts() ): the_post(); ?>
                    <article id="post-<?php the_ID() ?>" <?php post_class() ?> itemscope itemtype="http://schema.org/Article">
                        <header>
                            <h1 itemprop="name"><a href="<?php the_permalink() ?>" itemprop="url"><?php the_title() ?></a></h1>
                            <p>Postado por <?php the_author() ?> em <?php the_time('d/M/Y') ?> - <?php comments_popup_link('Sem Comentários', '1 Comentário', '% Comentários', 'comments-link', ''); ?> <?php edit_post_link('(Editar)'); ?></p>
                        </header>
                        <div itemprop="description">
                            <?php the_content() ?>
                        </div>
                    </article>
            
                    <?php comments_template(); ?>
            
                <?php endwhile; ?>
                <?php //if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
            <?php else: ?>
            <article id="post-0">
                <h1>Nada encontrado</h1>
                <p>Lamentamos mas não foram encontrados artigos.</p>
            </article>
            <?php endif; ?>
        </section>
        <?php get_sidebar() ?>
    </div>
</div>
<?php get_footer() ?>